package com.example.business_oa.service;

import com.example.comment_oa.dubbo.ChaBuTieDubbo;
import com.example.comment_oa.pojos.JobcorresSubsidy;
import io.seata.spring.annotation.GlobalTransactional;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ChaBuTieService {

    @DubboReference(version = "1.0.0")
    ChaBuTieDubbo chaBuTieDubbo;

    @GlobalTransactional(timeoutMills = 300000)
    public List<JobcorresSubsidy> selectBuTie(int zhiweiId,int bumenId){
        List<JobcorresSubsidy> jobcorresSubsidies = chaBuTieDubbo.selectBuTieXiangQingAnd(zhiweiId, bumenId);
        return jobcorresSubsidies;
    }
}
